#ifndef RESULT_H
#define RESULT_H
#include <QString>
// #include "friendinfo.h"

namespace MyNamespace {
    template<class T>
    class Result
    {
    public:
        Result(){}
        Result(int c, QString m, T d){
            code = c;
            msg = m;
            data = d;
        }
        //Result<std::vector<FriendInfo>> friend_list

        int getCode(){
            return code;
        }
        QString getMsg(){
            return msg;
        }

        T getData(){
            return data;
        }

    private:
        int code;

        QString msg;

        T data;
    };
}

#endif // RESULT_H
